<template>
  <view class="content">
    <image class="logo" src="/static/logo.png"></image>
    <view class="text-area">
      <text class="title">Hello 亿家灯火</text>
    </view>
  </view>

</template>

<script>
  export default {
    onLoad: function() {
		const roles = this.$store.state.user.roles
		if (roles.includes('shared_oper')) {
		  this.$tab.reLaunch('/pages/order/rob') // 跳转到共享运维页面
		}
    }
  }
</script>

<style>
 page {
   background-color: white; /* 与 content 的背景色保持一致 */
 }
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	background-color: white;
	
  }

  .logo {
    height: 300rpx;
    width: 400rpx;
    margin-top: 200rpx;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50rpx;
  }

  .text-area {
    display: flex;
    justify-content: center;
	background-color: white;
  }

  .title {
    font-size: 36rpx;
    color: #8f8f94;
	background-color: white;
  }
</style>
